<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/list_header.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css">
<script type="text/javascript"src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript"src="__PUBLIC__/js/bootstrap.min.js"></script>
<style>
#myAlert{
display:none;
}

#content{margin:10px;}

</style>
<script>

$(document).ready(function(){

	
	$("#submit").click(function(){
		$.ajax({
		    cache: true,
		    type: "POST",
		    url:"__APP__/Home/List/editUserInfo",
		    data:$('#form1').serialize(),// 你的formid
		    async: false,
		    error: function(request) {
		        alert("Connection error");
		    },
		    success: function(data) {
		    	alert(data);
		    }
		});
	});
	
});

</script>
<title>{$Think.session.username}的个人信息</title>
</head>
<body>
<include file="Public/list_header"/>

<div id="myAlert" class="alert alert-warning ">
   <a href="#" class="close" data-dismiss="alert">
   &times;
   </a>
   <span><strong>亲！</strong>您尚未完善个人信息哦！</span>
</div>
<div id="content">
<form action=""method="post"id="form1">
<ul>
<li>红满堂账号：{$user.username}<span class="badge">{$userflag}</span></li>
<li>红满堂UID：{$user.hmt_uid}</li>
<li>红满堂用户组：{$user.bbs_group}</li>
<li>所属分组：
<select name="group_id">
<option selected>{$user.groupname}</option>
<volist name="groupselect" id="vo">
<option value="{$vo.id}">{$vo.groupname}</option>
</volist>
</select></li>
<li>*真名：<input type="text" name="truename" value="{$user.truename}"></li>
<li>*性别：<select name="sex">
<present name="sex"><option value="{$user.sex}">{$user.sex}</option></present>
<option value="男">男</option>
<option value="女">女</option>
<option value="不男不女">不男不女</option>
</select></li>
<li>学号：<input type="text" name="student_id"value="{$user.student_id}"></li>
<li>*年级：<input type="text"name="grade" value="{$user.grade}"></li>
<li>*学院：<input type="text" name="college"value="{$user.college}"></li>
<li>*专业：<input type="text" name="subject"value="{$user.subject}"></li>
<li>*长号：<input type="text" name="longnum"value="{$user.longnum}"></li>
<li>短号：<input type="text" name="shortnum"value="{$user.shortnum}"></li>
<li>*qq：<input type="text" name="qq"value="{$user.qq}"></li>
<li>微博：<input type="text" name="microblog"value="{$user.microblog}"></li>
<li>微信：<input type="text" name="weixin"value="{$user.weixin}"></li>
<li>宿舍地址：<input type="text" name="address"value="{$user.address}"></li>

<li>一句话介绍自己<textarea name="message"value="{$user.messgae}"rows="2" cols="30"/></textarea></li>
<li>在红满堂任职时间<input type="text"name="hmt_worktime"value="{$user.hmt_worktime}"></li>
<li>毕业后任职公司<input type="text"name="company"value="{$user.company}"></li>
<li>毕业后所在城市<input type="text"name="work_city"value="{$user.work_city}"></li>
<li><input type="button" value="保存修改"class="btn"id="submit" ><a class="btn" href="javascript:history.go(-1);">返回</a></li>
</ul>
</form>
</div>
</body>
</html>